package com.lynu.controller;

import com.lynu.pojo.PortalOv;
import com.lynu.service.TypeService;
import com.lynu.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/portal")
@CrossOrigin
public class TypeController {
    @Autowired
    private TypeService typeService;
    @GetMapping("/findAllTypes")
    public Result findAllPages(){

        return typeService.findAllTypes();
    }

}
